#此脚本目标：主要是删除一天之前的数据,用来节省系统的磁盘空间

#!/usr/bin/env bash

# xxxx


dataCheckFiles=`find /home/hmt/dataCheck/*  -mtime +0`
dataDiskFiles=`find /home/hmt/dataDisk/*  -mtime +0`
data4aAuthFiles=`find /home/hmt/data4aAuth/*  -mtime +0`
recyclFiles=`find /home/hmt/sh_linux/tools/recycl/*  -mtime +0`


echo "====================="

#删除 dataCheckFiles
for file in ${dataCheckFiles};
    do
    rm -rf  ${file}
    done

echo "====================="

#删除 dataDiskFiles
for file in ${dataDiskFiles};
    do
    rm -rf ${file}
    done


echo "====================="

#删除 data4aAuthFiles
for file in ${data4aAuthFiles};
    do
    rm -rf ${file}
    done

echo "====================="

#删除 recyclFiles
for file in ${recyclFiles};
    do
    rm -rf ${file}
    done

















